﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataTransferObject;

namespace Engine
{
    public class NLPEngine
    {

        #region Attributes
        private static NLPEngine _nlpEngine;

        private NLPAlgorithm _jskeNLPAlgorithm;
        private List<String> _listTaskInputTxt;
        private List<Task> _listTaskOutput;
        #endregion

        #region Constructors
        private NLPEngine()
        {
            
        }
        public static NLPEngine getInstance()
        {
            if (_nlpEngine == null)
                return new NLPEngine();
            else
                return _nlpEngine;
        }
        #endregion

        #region Properties

        #endregion

        #region Methods
        public Object partTaskTxt(String taskTxt)
        {
            //_jskeNLPAlgorithm = new _2NLPAlgorithm(taskTxt);
            _jskeNLPAlgorithm = new JskeNLPAlgorithm(taskTxt);
            return _jskeNLPAlgorithm.run();
        }
        #endregion
    }
}
